import { Component } from "vue";

export interface IMeta {
  title: string;
  icon: string;
  hidden?: boolean;
}
export interface ITagsViewRouter {
  fullPath: string;
  meta: IMeta;
}
export interface IRouter extends ITagsViewRouter {
  path: string;
  name: string;
  component: string | Component;
  children?: IRouter[];
  menuType?: "C" | "M"; // 菜单类型，C菜单，M 目录
  redirect?: string;
  matched?: IRouter[];
  hidden?: boolean;
}
export interface ICurrentMenu extends ITagsViewRouter {
  idx: number;
}

export interface MenuClickEvent {
  key: string;
  keyPath: string[];
  domEvent: MouseEvent;
}
